/*Limits the input size and Makes the buttons in fancyboxes submit their forms*/
$(document).ready(function()
{
	$("a.magicInput").not('a.question').click(function(){
		$("form").submit();
	});
	
	$('input.magicInput').not('input.question').keydown(
    function(event)
    {
        if($(this).val().length >= 30)
        {
            $(this).val($(this).val().substring(0, 30));
        }
    });
});